import { useState,useEffect } from 'react'
import { fromJS } from 'immutable'
const immutableObj = fromJS({
    a:{
        b:1,
        c:2,
        d:3,
        e:4,
        f:5
    }
})
export default function Dong3() {
    const[state,setState] = useState(immutableObj)
    useEffect(()=>{
        setTimeout(() => {
            setState(state.setIn(['a','b'],11))
        }, 2000)
    },[])
    return (
        <h1>我是Dong3组件,{state.getIn(['a','b'])}</h1>
    )
}
